<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
  <title>第一个Vue程序</title>
  <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
</head>

<body>
  <div id="app">
    <p>姓名: {{ name }}</p>
    <p>学号: {{ studentId }}</p>
    <p>班级: {{ classInfo }}</p>
    <p>最喜欢吃的食物: {{ favoriteFood }}</p>
  </div>
  <script>
    const { createApp } = Vue;

    createApp({
      data() {
        return {
          name: '付典雅',
          studentId: '22401330102',
          classInfo: '计科（智能）2201',
          favoriteFood: '抹茶好喝椰'
        };
      }
    }).mount('#app');
  </script>

</body>

</html>